package collection;

import java.util.HashSet;
import java.util.Set;

public class SetDemo {
	public static void main(String[] args) {
		Set<Point> s = new HashSet<>();
		s.add(new Point(11,2));
		s.add(new Point(3,4));
		s.add(new Point(52,6));
		s.add(new Point(7,8));
		s.add(new Point(11,2));
		System.out.println(s);
		
		boolean b = s.add(new Point(7,8));
		System.out.println(b);
		System.out.println(s);
	}
}
